/**
 * 课程分类 api 封装
 *
 * @Author:    AKITA
 * @Date:      2025-06-06 11:08:34
 * @Copyright  AKITA
 */
import {postRequest, getRequest, postDownload, getDownload} from '/@/lib/axios';

export const questionsApi = {
  queryPage: (param) => {
    return postRequest('/questions/queryPage', param);
  },

  add: (param) => {
    return postRequest('/questions/add', param);
  },

  update: (param) => {
    return postRequest('/questions/update', param);
  },

  delete: (id) => {
    return getRequest(`/questions/delete/${id}`);
  },

  batchDelete: (idList) => {
    return postRequest('/questions/batchDelete', idList);
  },

  info: (param) => {
    return getRequest('/questions/info/' + param);
  },

  export: (param) => {
    return postDownload('/questions/export',param);
  },

};

/**
 * 日历明细 api 封装
 *
 * @Author:    AKITA
 * @Date:      2025-06-06 11:11:41
 * @Copyright  AKITA
 */

export const questionsaApi = {
  queryPage: (param) => {
    return postRequest('/questionsa/queryPage', param);
  },

  add: (param) => {
    return postRequest('/questionsa/add', param);
  },

  update: (param) => {
    return postRequest('/questionsa/update', param);
  },

  delete: (id) => {
    return getRequest(`/questionsa/delete/${id}`);
  },

  batchDelete: (idList) => {
    return postRequest('/questionsa/batchDelete', idList);
  },
};
